package mysql

import "gorm.io/gorm"

type Carts struct {
	gorm.Model
	UserId      int64   `gorm:"type:int(11);not null;comment:用户ID"`
	GoodsId     int64   `gorm:"type:int(11);not null;comment:商品ID"`
	GoodsName   string  `gorm:"type:varchar(20);not null;comment:商品名称"`
	GoodsNumber int64   `gorm:"type:int(11);not null;comment:数量"`
	Price       float64 `gorm:"type:decimal(10,2);not null;comment:价钱"`
	Amount      float64 `gorm:"type:decimal(10,2);not null;comment:金额"`
}
